package com.pacy.pacybaseproject.beans;

import com.flyco.tablayout.listener.CustomTabEntity;

/**
 * @author PACY
 * @date 2021/12/23
 * description:
 */
public class TabBean implements CustomTabEntity {

    public String title;

    public int selectedIcon;
    public int unselectedIcon;
    public TabBean(String title) {
        this.title = title;
    }

    public TabBean(String title,int selectedIcon,int unselectedIcon) {
        this.title = title;
        this.selectedIcon=selectedIcon;
        this.unselectedIcon=unselectedIcon;
    }

    public void setSelectedIcon(int selectedIcon) {
        this.selectedIcon = selectedIcon;
    }

    public void setUnselectedIcon(int unselectedIcon) {
        this.unselectedIcon = unselectedIcon;
    }

    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return selectedIcon;
    }

    @Override
    public int getTabUnselectedIcon() {
        return unselectedIcon;
    }
}
